local PLUGIN = {}
PLUGIN.Title = "Rain (Beta)"
PLUGIN.Description = "Allows players to turn on or off rain clientside."
PLUGIN.Author = "Matt J"
PLUGIN.ChatCommand = "rain"
PLUGIN.Usage = "[1/0]"
PLUGIN.Privileges = { "Rain" }

function PLUGIN:Call( ply, args )
	if ply:EV_HasPrivilege( "Rain" ) then
		if args[1] == "0" then
			-- ply:ConCommand( "DeactivateRain" )
			evolve:Notify( ply, evolve.colors.white, "Sorry, You have to rejoin to turn off the Rain" )
		else
			ply:ConCommand( "ActivateRain" )
			evolve:Notify( ply, evolve.colors.white, "The Rain is now On, Rejoin to turn it off." )
		end
	else
		evolve:Notify( ply, evolve.colors.red, evolve.constants.notallowed )
	end
end
evolve:RegisterPlugin( PLUGIN )